home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / intrvews / xgrab.lha / xgrab / include / screen.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-07  |  817 b   |  35 lines

  1. /**
  2.    GRAB Graph Layout and Browser System
  3.  
  4.    Copyright (c) 1986, 1988 Regents of the University of California
  5.    Copyright (c) 1989, Tera Computer Company
  6.  **/
  7.  
  8. /* screen.h -- a representation of the screen */
  9.  
  10. #ifndef screen_h
  11. #define screen_h
  12.  
  13. typedef struct             /* a rectangular area */
  14. {            
  15.     int min_x, min_y, max_x, max_y;
  16. } BOX;
  17.  
  18. typedef struct             /* the zoom factors */
  19. {        
  20.     float xzoom, yzoom;
  21. } ZOOM;
  22.  
  23. typedef struct             /* info for a screen */
  24. {        
  25.     BOX canvas;            /* size of abstract canvas */
  26.     BOX display;        /* size of part of abstract canvas we see */
  27.     ZOOM zoom;            /* current zoom factor */
  28.     BOX absview;        /* absolute screen bounds (abstract canvas in 
  29.                     absolute coordinates) */
  30.     BOX bound;            /* the display in absolute coordinates, 
  31.                     for bounds testing */
  32. } SCREEN;
  33.  
  34. #endif
  35.